package com.itheima.sys.service;

import com.itheima.sys.dto.SysRoleDTO;
import com.itheima.sys.dto.SysRoleEditDTO;
import com.itheima.sys.entity.SysRole;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 角色表  服务类
 * </p>
 *
 * @author itheima
 * @since 2020-12-13
 */
public interface ISysRoleService extends IService<SysRole> {

    List<SysRoleDTO> queryRoles(Long companyUserId, Long companyId);

    List<SysRoleDTO> queryRolesByCompanyId();

    void updateRole(SysRoleEditDTO sysRoleEditDTO);

    SysRole querySysAdminRole(Long companyId);
}
